var sliderOptions=
{
	sliderId: "slider",
	effect: "1,4,5,6,7,8,9,12,13,14,15,17",
	effectRandom: true,
	pauseTime: 2600,
	transitionTime: 500,
	slices: 11,
	boxes: 7,
	hoverPause: false,
	autoAdvance: true,
	captionOpacity: 0.6,
	captionEffect: "rotate",
	thumbnailsWrapperId: "thumbs",
	license: "free"
};

var imageSlider=new mcImgSlider(sliderOptions);

/* Menucool Javascript Image Slider v2012.8.31. Copyright www.menucool.com */
function mcImgSlider(e){var B=function(d){var a=d.childNodes,c=[];if(a)for(var b=0,e=a.length;b<e;b++)a[b].nodeType==1&&c.push(a[b]);return c},A=function(a,b){return a.getElementsByTagName(b)},P=function(a){for(var c,d,b=a.length;b;c=parseInt(Math.random()*b),d=a[--b],a[b]=a[c],a[c]=d);return a},t=function(a,b){if(a){a.o=b;if(I)a.style.filter="alpha(opacity="+b*100+")";else a.style.opacity=b}},O=function(a,c,b){if(a.addEventListener)a.addEventListener(c,b,false);else a.attachEvent&&a.attachEvent("on"+c,b)},Q=document,M=function(c,a,b){return b?c.substring(a,b):c.substring(a)},p=function(){this.d=[];this.b=null;this.c()};function G(){var c=50,a=navigator.userAgent,b;if((b=a.indexOf("MSIE "))!=-1)c=parseInt(a.substring(b+5,a.indexOf(".",b)));if(a.indexOf("Safari")!=-1&&a.indexOf("Chrome")==-1)c=300;return c}var I=G()<9;p.a={f:function(a){return-Math.cos(a*Math.PI)/2+.5},g:function(a){return a},h:function(b,a){return Math.pow(b,a*2)},j:function(b,a){return 1-Math.pow(1-b,a*2)}};p.prototype={k:{c:e.transitionTime,a:function(){},b:p.a.f,d:1},c:function(){for(var b=["webkit","moz","ms","o"],a=0;a<b.length&&!window.requestAnimationFrame;++a){window.requestAnimationFrame=window[b[a]+"RequestAnimationFrame"];window.cancelAnimationFrame=window[b[a]+"CancelAnimationFrame"]||window[b[a]+"CancelRequestAnimationFrame"]}this.supportAnimationFrame=!!window.requestAnimationFrame},m:function(h,d,g,c){for(var b=[],i=g-d,j=g>d?1:-1,f=Math.ceil(60*c.c/1e3),a,e=1;e<=f;e++){a=d+c.b(e/f,c.d)*i;if(h!="opacity")a=Math.round(a);b.push(a)}b.index=0;return b},n:function(){this.b==null&&this.p()},p:function(){this.q();var a=this;this.b=this.supportAnimationFrame?window.requestAnimationFrame(function(){a.p()}):window.setInterval(function(){a.q()},15)},q:function(){var a=this.d.length;if(a){for(var c=0;c<a;c++)this.o(this.d[c]);while(a--){var b=this.d[a];if(b.d.index==b.d.length){b.c();this.d.splice(a,1)}}}else{if(this.supportAnimationFrame)window.cancelAnimationFrame(this.b);else window.clearInterval(this.b);this.b=null}},o:function(a){if(a.d.index<a.d.length){var c=a.b,b=a.d[a.d.index];if(a.b=="opacity"){if(I){c="filter";b="alpha(opacity="+Math.round(b*100)+")"}}else b+="px";a.a.style[c]=b;a.d.index++}},r:function(e,b,d,f,a){a=this.s(this.k,a);var c=this.m(b,d,f,a);this.d.push({a:e,b:b,d:c,c:a.a});this.n()},s:function(c,b){b=b||{};var a,d={};for(a in c)d[a]=b[a]!==undefined?b[a]:c[a];return d}};var d=new p,b={a:0,e:"",d:0,c:0,b:0},a,c,m,o,w,u,x,f,g,z,s,k,q,r,l,N,y,h,j=null,E=function(b){if(b=="series1")a.a=[6,8,15,2,5,14,13,3,7,4,14,1,13,15];else if(b=="series2")a.a=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17];else a.a=b.split(/\W+/);a.a.p=e.effectRandom?-1:a.a.length==1?0:1},D=function(){a={b:e.pauseTime,c:e.transitionTime,f:e.slices,g:e.boxes,O0:e.license,h:e.hoverPause,i:e.autoAdvance,j:e.captionOpacity,k:e.captionEffect=="none"?0:e.captionEffect=="fade"?1:2,l:e.thumbnailsWrapperId,Ob:function(){typeof beforeSlideChange!=="undefined"&&beforeSlideChange(arguments)},Oa:function(){typeof afterSlideChange!=="undefined"&&afterSlideChange(arguments)}};if(c)a.m=Math.ceil(c.offsetHeight*a.g/c.offsetWidth);E(e.effect);a.n=function(){var b;if(a.a.p==-1)b=a.a[Math.floor(Math.random()*a.a.length)];else{b=a.a[a.a.p];a.a.p++;if(a.a.p>=a.a.length)a.a.p=0}if(b<1||b>17)b=15;return b}},S=["$1$2$3","$1$2$3","$1$24"],n=[];function K(){var e;if(a.l)e=document.getElementById(a.l);if(e)for(var f=e.childNodes,d=0;d<f.length;d++)f[d].className=="thumb"&&n.push(f[d]);var c=n.length;if(c){while(c--){n[c].on=0;n[c].i=c;n[c].onclick=function(){j.y(this.i)};n[c].onmouseover=function(){this.on=1;this.className="thumb thumb-on"};n[c].onmouseout=function(){this.on=0;this.className=this.i==b.a?"thumb thumb-on":"thumb"}}F(0)}}function F(b){var a=n.length;if(a)while(a--)n[a].className=a!=b&&n[a].on==0?"thumb":"thumb thumb-on"}function L(b){var a=[],c=b.length;while(c--)a.push(String.fromCharCode(b[c]));return a.join("")}var C=function(a,f,h,c,b,e,g){setTimeout(function(){if(f&&h==f-1){var g={};g.a=function(){j.o()};for(var i in a)g[i]=a[i]}else g=a;b.width!==undefined&&d.r(c,"width",b.width,e.width,a);b.height!==undefined&&d.r(c,"height",b.height,e.height,a);d.r(c,"opacity",b.opacity,e.opacity,g)},g)},H=function(a){c=a;this.b=0;this.c()},R=[/(?:.*\.)?(\w)([\w\-])[^.]*(\w)\.[^.]+$/,/.*([\w\-])\.(\w)(\w)\.[^.]+$/,/(?:.*\.)?([\w\-])([\w\-])\.[^.]+$/],v=function(b){var a=document.createElement("div");a.className=b;return a};H.prototype={c:function(){m=c.offsetWidth;o=c.offsetHeight;h=B(c);var k=h.length;while(k--){var e=h[k],d=null;if(e.nodeName!="IMG"){if(e.nodeName=="A"){d=e;d.style.display="none";var n=d.className?" "+d.className:"";d.className="imgLink"+n;var p=this.z(d),i=d.getAttribute("href");if(p&&typeof McVideo!="undefined"&&i&&i.indexOf("http")!=-1){d.onclick=function(){return this.getAttribute("autoPlayVideo")=="true"?false:j.d(this)};McVideo.register(d,this)}}e=A(e,"img")[0]}e.style.display="none";b.d++}a.m=Math.ceil(o*a.g/m);if(h[b.a].nodeName=="IMG")b.e=h[b.a];else b.e=A(h[b.a],"img")[0];if(h[b.a].nodeName=="A")h[b.a].style.display="block";c.style.background='url("'+b.e.getAttribute("src")+'") no-repeat';this.i();w=this.k();var f=this.v(),g=b.e.parentNode;if(this.z(g)&&g.getAttribute("autoPlayVideo")=="true")this.d(g);else if(a.i&&b.d>1)l=setTimeout(function(){f.y(f.n(1))},a.b);if(a.h){c.onmouseover=function(){if(b.b!=2){b.b=1;clearTimeout(l);l=null}};c.onmouseout=function(){if(b.b!=2){b.b=0;if(l==null&&!b.c&&a.i)l=setTimeout(function(){f.y(f.n(b.a+1))},a.b/2)}}}if(G()==300)c.style["-webkit-transform"]="translate3d(0,0,0)"},d:function(c){var a=McVideo.play(c,m,o);if(a)b.b=2;return!this.b},f:function(){y=v("navBulletsWrapper");for(var e=[],a=0;a<b.d;a++)e.push("<div rel='"+a+"'></div>");y.innerHTML=e.join("");for(var d=B(y),a=0;a<d.length;a++){if(a==b.a)d[a].className="active";d[a].onclick=function(){j.y(parseInt(this.getAttribute("rel")))}}c.appendChild(y)},g:function(){var c=B(y),a=b.d;while(a--){if(a==b.a)c[a].className="active";else c[a].className="";if(h[a].nodeName=="A")h[a].style.display=a==b.a?"block":"none"}},h:function(a,d){var c=function(b){var a=b.charCodeAt(0).toString();return a.substring(a.length-1)},b=d.replace(R[a-2],S[a-2]).split("");return"b"+a+b[1]+c(b[0])+c(b[2])},i:function(){u=v("mc-caption");x=v("mc-caption");f=v("mc-caption-bg");t(f,0);f.appendChild(x);g=v("mc-caption-bg2");g.appendChild(u);t(g,0);g.style.visibility=f.style.visibility=x.style.visibility="hidden";c.appendChild(f);c.appendChild(g);z=[f.offsetLeft,f.offsetTop,u.offsetWidth];u.style.width=x.style.width=u.offsetWidth+"px";this.j()},j:function(){if(a.k==2){s=q={opacity:0,width:0,marginLeft:Math.round(z[2]/2)};k={opacity:1,width:z[2],marginLeft:0};r={opacity:a.j,width:z[2],marginLeft:0}}else if(a.k==1){s=q={opacity:0};k={opacity:1};r={opacity:a.j}}},k:function(){var a=b.e.getAttribute("alt");if(a&&a.substr(0,1)=="#"){var c=document.getElementById(a.substring(1));a=c?c.innerHTML:""}this.l();return a},l:function(){var c=1;if(u.innerHTML.length>1)if(!a.k)f.style.visibility=g.style.visibility="hidden";else{c=0;var b={c:a.c*.4,b:a.k==1?p.a.f:p.a.h,d:a.k==1?0:2},e=b;e.a=function(){f.style.visibility=g.style.visibility="hidden";j.m()};if(k.marginLeft!==undefined){d.r(g,"width",k.width,s.width,b);d.r(f,"width",r.width,q.width,b);d.r(g,"marginLeft",k.marginLeft,s.marginLeft,b);d.r(f,"marginLeft",r.marginLeft,q.marginLeft,b)}if(k.opacity!==undefined){d.r(g,"opacity",k.opacity,s.opacity,b);d.r(f,"opacity",r.opacity,q.opacity,e)}}c&&setTimeout(function(){j.m()},a.c*.7)},m:function(){x.innerHTML=u.innerHTML=w;if(w){f.style.visibility=g.style.visibility="visible";if(a.k){var c=a.c*.7,b={c:c,b:a.k==1?p.a.f:p.a.j,d:a.k==1?0:2};if(k.marginLeft!==undefined){d.r(g,"width",s.width,k.width,b);d.r(f,"width",q.width,r.width,b);d.r(g,"marginLeft",s.marginLeft,k.marginLeft,b);d.r(f,"marginLeft",q.marginLeft,r.marginLeft,b)}if(k.opacity!==undefined){d.r(g,"opacity",s.opacity,k.opacity,b);d.r(f,"opacity",q.opacity,r.opacity,b)}}else{t(g,1);t(f,a.j)}}},a:function(a){return a.replace(/(?:.*\.)?(\w)([\w\-])?[^.]*(\w)\.[^.]*$/,"$1$3$2")},o:function(){b.c=0;clearTimeout(l);l=null;c.style.background='url("'+b.e.getAttribute("src")+'") no-repeat';var e=this,d=b.e.parentNode;if(this.z(d)&&d.getAttribute("autoPlayVideo")=="true")this.d(d);else if(!b.b&&a.i)l=setTimeout(function(){e.y(e.n(b.a+1))},a.b);a.Oa.call(this,b.a,b.e)},p:function(){b.c=1;if(h[b.a].nodeName=="IMG")b.e=h[b.a];else b.e=A(h[b.a],"img")[0];this.g();clearTimeout(N);w=this.k();var f=A(c,"div");i=f.length;while(i--)if(f[i].className=="mcSlc"||f[i].className=="mcBox"){var g=c.removeChild(f[i]);delete g}var d=a.n();a.Ob.apply(this,[b.a,b.e,w,d]);F(b.a);var e=d<14?this.w(d):this.x();if(d<9||d==15){if(d%2)e=e.reverse()}else if(d<14)e=e[0];if(d<9)this.q(e,d);else if(d<13)this.r(e,d);else if(d==13)this.s(e);else if(d<16)this.t(e,d);else this.u(e,d)},q:function(b,c){for(var d=0,e=c<7?{height:0,opacity:-.4}:{width:0,opacity:0},g={height:o,opacity:1},a=0,f=b.length;a<f;a++){if(c<3)b[a].style.bottom="0";else if(c<5)b[a].style.top="0";else if(c<7){b[a].style[a%2?"bottom":"top"]="0";e.opacity=-.2}else{g={width:b[a].offsetWidth,opacity:1};b[a].style.width=b[a].style.top="0";b[a].style.height=o+"px"}C({},f,a,b[a],e,g,d);d+=50}},r:function(c,b){c.style.width=b<11?"0px":m+"px";c.style.height=b<11?o+"px":"0px";t(c,1);if(b<11)c.style.top="0";if(b==9){c.style.left="auto";c.style.right="0px"}else if(b>10)c.style[b==11?"bottom":"top"]="0";if(b<11)var e=0,f=m;else{e=0;f=o}var g={b:p.a.j,c:a.c*1.6,a:function(){j.o()}};d.r(c,b<11?"width":"height",e,f,g)},s:function(b){b.style.top="0";b.style.width=m+"px";b.style.height=o+"px";var c={c:a.c*1.6,a:function(){j.o()}};d.r(b,"opacity",0,1,c)},t:function(b){var n=a.g*a.m,k=timeBuff=0,f=colIndex=0,d=[];d[0]=[];for(var c=0,j=b.length;c<j;c++){b[c].style.width=b[c].style.height="0px";d[f][colIndex]=b[c];colIndex++;if(colIndex==a.g){f++;colIndex=0;d[f]=[]}}for(var l={c:a.c/1.3},g=0,j=a.g*2;g<j;g++){for(var e=g,h=0;h<a.m;h++){if(e>=0&&e<a.g){var i=d[h][e];C(l,b.length,k,i,{width:0,height:0,opacity:0},{width:i.w,height:i.h,opacity:1},timeBuff);k++}e--}timeBuff+=100}},u:function(a,g){a=P(a);for(var d=0,b=0,h=a.length;b<h;b++){var c=a[b];if(g==16){a[b].style.width=a[b].style.height="0px";var e={width:0,height:0,opacity:0},f={width:c.w,height:c.h,opacity:1}}else{e={opacity:0};f={opacity:1}}C({},a.length,b,c,e,f,d);d+=20}},v:function(){return(new Function("a","b","c","d","e","f","g","h","this.f();var l=e(g(b([110,105,97,109,111,100])));if(l==''||l.length>3||a[b([48,79])]==f((+a[b([48,79])].substring(1,2)),g(b([110,105,97,109,111,100])))){d();this.b=1;}else{a[b([97,79])]=a[b([98,79])]=function(){};var k=c[0];if (k.getAttribute(b([102,101,114,104]))) var x = k.getAttribute(b([102,101,114,104]));if (x && x.length > 20) var y = h(x, 17, 19) == 'ol';};return this;")).apply(this,[a,L,h,K,this.a,this.h,function(a){return Q[a]},M])},w:function(f){for(var i=[],g=f>8?m:Math.round(m/a.f),j=f>8?1:a.f,e=0;e<j;e++){var h=v("mcSlc"),d=h.style;d.left=g*e+"px";d.width=(e==a.f-1?m-g*e:g)+"px";d.height="0px";d.background='url("'+b.e.getAttribute("src")+'") no-repeat -'+e*g+"px 0%";if(f==10)d.background='url("'+b.e.getAttribute("src")+'") no-repeat right top';else if(f==12)d.background='url("'+b.e.getAttribute("src")+'") no-repeat left bottom';d.zIndex=1;d.position="absolute";t(h,0);c.appendChild(h);i[i.length]=h}return i},x:function(){for(var j=[],i=Math.round(m/a.g),h=Math.round(o/a.m),g=0;g<a.m;g++)for(var f=0;f<a.g;f++){var d=v("mcBox"),e=d.style;e.left=i*f+"px";e.top=h*g+"px";d.w=f==a.g-1?m-i*f:i;d.h=g==a.m-1?o-h*g:h;e.width=d.w+"px";e.height=d.h+"px";e.background='url("'+b.e.getAttribute("src")+'") no-repeat -'+f*i+"px -"+g*h+"px";e.zIndex=1;e.position="absolute";t(d,0);c.appendChild(d);j.push(d)}return j},y:function(c,e){if(b.c&&!e||c==b.a)return 0;if(b.b==2){b.b=0;var a=document.getElementById("mcVideo");a.src="";var d=a.parentNode.parentNode.removeChild(a.parentNode);delete d}clearTimeout(l);l=null;b.a=this.n(c);this.p()},n:function(a){if(a>=b.d)a=0;else if(a<0)a=b.d-1;return a},To:function(a){this.y(this.n(b.a+a))},z:function(a){return a.className.indexOf(" video")>-1}};var J=function(){var a=document.getElementById(e.sliderId);if(a)j=new H(a)};(function(){D();O(window,"load",J)})();return{displaySlide:function(b,a){j.y(b,a)},next:function(){j.To(1)},previous:function(){j.To(-1)},getAuto:function(){return a.i},switchAuto:function(){if(a.i=!a.i)j.To(1);else clearTimeout(l)},setEffect:function(a){E(a)},changeOptions:function(a){for(var b in a)e[b]=a[b];D()},getElement:function(){return document.getElementById(e.sliderId)}}}